package lab02.test37;

public class Graduate extends Student {
    public Graduate(){}

    public Graduate(String name,String degree,double math,double computer,double english){
        super(name,degree, english, math, computer);
    }

    public void grade(){
        double a=super.average(english,math,computer);

        if (a>=80){
            System.out.println("能拿到学位证书");
        }else
            System.out.println("不能拿到学位证书");

    }
    @Override
    public String toString() {
        return name+"\t\t"+degree+"\t\t"+english+"\t\t"+math+"\t\t"+computer+"\t\t";
    }
}
